package com.xpsoft.framework.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import com.xpsoft.framework.service.impl.BaseService;

public class JobModel extends QuartzJobBean {

	private BaseService service ;

	public BaseService getService() {
		return service;
	}

	public void setService(BaseService service) {
		this.service = service;
	}

	/*
	 * (non-Javadoc)
	 * @see org.springframework.scheduling.quartz.QuartzJobBean#executeInternal(org.quartz.JobExecutionContext)
	 */
	protected void executeInternal(JobExecutionContext arg0)throws JobExecutionException {
		try {
			//your code
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
